package cn.wokoba.dao.dao;

import cn.wokoba.dao.dao.po.Sku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface ISkuDao extends BaseMapper<Sku> {

    @Select("""
             select source, channel, goods_id, goods_name, original_price
                    from sku
                    where goods_id = #{goodsId}\
            """)
    Sku querySkuByGoodsId(String goodsId);

}
